package com.zmsoft.persistent.sfg.Sfg661040PlayerPocket;

import org.cnsoft.framework.db.manager.MyDBTableSQLSupport;
import org.springframework.stereotype.Component;

/**
 * 玩家口袋信息建表语句
 */
@Component("Sfg661040PlayerPocketSQL")
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class Sfg661040PlayerPocketSQL extends MyDBTableSQLSupport {
	// 表名
	public String getTableName() {
		return "sfg661040_player_pocket";
	}

	// 获得SQL内容
	public String getSQL() throws Exception {
		StringBuilder sqlStringBuilder = new StringBuilder();// 临时变量

		sqlStringBuilder.append("CREATE TABLE sfg661040_player_pocket");
		sqlStringBuilder.append("(");
		sqlStringBuilder.append("    id VARCHAR(64) NOT NULL COMMENT '流水ID',");
		sqlStringBuilder.append("    player_id VARCHAR(64) COMMENT '用户ID',");
		sqlStringBuilder.append("    player_name VARCHAR(128) COMMENT '用户昵称',");
		sqlStringBuilder.append("    prop_id VARCHAR(64) COMMENT '道具ID',");
		sqlStringBuilder.append("    prop_name VARCHAR(128) COMMENT '道具名称',");
		sqlStringBuilder.append("    prop_num BIGINT(10) COMMENT '道具数量',");
		sqlStringBuilder.append("    prop_type VARCHAR(4) COMMENT '道具类别(1农作物2家畜3水产5产品9其他)',");
		sqlStringBuilder.append("    prop_volume BIGINT(10) COMMENT '道具占用仓库容积大小',");
		sqlStringBuilder.append("    memo VARCHAR(200) COMMENT '备注',");
		sqlStringBuilder.append("    fb1 VARCHAR(40) COMMENT '备用1',");
		sqlStringBuilder.append("    fb2 VARCHAR(20) COMMENT '备用2',");
		sqlStringBuilder.append("    fb3 VARCHAR(50) COMMENT '备用3',");
		sqlStringBuilder.append("    fb4 VARCHAR(200) COMMENT '备用4',");
		sqlStringBuilder.append("    fb5 VARCHAR(80) COMMENT '备用5',");
		sqlStringBuilder.append("    eb1 VARCHAR(40) COMMENT '扩展1',");
		sqlStringBuilder.append("    eb2 VARCHAR(80) COMMENT '扩展2',");
		sqlStringBuilder.append("    eb3 VARCHAR(20) COMMENT '扩展3',");
		sqlStringBuilder.append("    eb4 VARCHAR(10) COMMENT '扩展4',");
		sqlStringBuilder.append("    eb5 VARCHAR(20) COMMENT '扩展5',");
		sqlStringBuilder.append("    sid VARCHAR(20) COMMENT '数据归属系统',");
		sqlStringBuilder.append("    del_flag CHAR(1) DEFAULT '0' COMMENT '有效标识',");
		sqlStringBuilder.append("    create_time VARCHAR(24) DEFAULT '2018-02-02' NOT NULL COMMENT '创建时间',");
		sqlStringBuilder.append("    creator VARCHAR(64) DEFAULT 'SYSTEM' NOT NULL COMMENT '创建者',");
		sqlStringBuilder.append("    update_time VARCHAR(24) COMMENT '更新时间',");
		sqlStringBuilder.append("    updator VARCHAR(64) COMMENT '最后更新者',");
		sqlStringBuilder.append("  PRIMARY KEY (id)");
		sqlStringBuilder.append(") COMMENT '玩家口袋信息';");

		return sqlStringBuilder.toString();
	}

}
